﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace ServiceMs.Models
{
    public static class ServerInfos
    {

        public static List<ServerInfo> ServerInfoList = new List<ServerInfo>
        {
            new ServerInfo()
            {
                Id=Guid.NewGuid().ToString(),
                TaskName = "系统心跳任务",
                ExecWhenStart = false,
                TaskKey = "系统任务，请勿删除",
                IsUsable = true,
                ExecTime = "1 */2 * * * ?",
                TaskMethod =String.Format("{0}/Home/Ping",ConfigurationManager.AppSettings["PublishAddr"]),
                AddPerson = "赵江",
                AddTime = "2022-04-27"
            },
            new ServerInfo()
            {
                Id=Guid.NewGuid().ToString(),
                TaskName = "系统任务日志清理",
                ExecWhenStart = false,
                TaskKey = "系统任务，请勿删除",
                IsUsable = true,
                ExecTime = "1 0 0 * * ?",
                TaskMethod = "ClearTaskLog",
                AddPerson = "赵江",
                AddTime = "2022-04-27"
            }
        };
    }
}